<?php
class MenusController extends AppController {
	var $name = 'Menus';
	
	function index(){
		$this->layout="jqgrid2";		
	}
	
	function listarmenus(){
		$this->autoRender = false;		
		echo $this->JQTreeGrid->menu("Menu");
	}
	
	function mensaje(){
		$this->layout = 'ajax';
		$this->set('mensaje', $this->params['form']['mensaje']);
		$this->set('titulo', $this->params['form']['titulo']);
	}
	
    function pruebas(){ 
        configure::write('debug',2);
        debug('hola mundo'); 
        $this->loadModel('Documento'); 
	    debug($this->Documento->find('all'));	    
	}
}